package com.xyht.medicine_management_system.modules.medicineSource.entity.resp;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xyht.medicine_management_system.modules.user.entity.resp.UserinfoResp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 药知源
 * </p>
 *
 * @author XYHT
 * @since 2023-11-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mms_medicine_source")
@ApiModel(value="MmsMedicineSource对象", description="药知源")
public class MmsMedicineSourceResp implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "标题")
    private String sourceTitle;

    @ApiModelProperty(value = "作者")
    private String sourceAuthor;

    @ApiModelProperty(value = "内容")
    private String sourceContent;

    @ApiModelProperty(value = "内容(纯文本)")
    private String sourceContentText;

    @ApiModelProperty(value = "操作者")
    private String sourceOperator;

    private UserinfoResp operatorUserinfo;

    @ApiModelProperty(value = "最后一次修改数据用户")
    private String lastUpdateUser;

    private UserinfoResp lastUserinfo;

    @ApiModelProperty(value = "展示图片")
    private String sourceImg;

    @ApiModelProperty(value = "是否展示  0：不展示   1：展示")
    private Integer isDisplay;

    @ApiModelProperty(value = "分类id")
    private String classificationId;

    private String classificationName;

    private List<MmsMedicineSourceAndMedicineRelationResp> relationList;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "是否收藏 [默认1:收藏 2:未收藏]")
    private Integer collectFlag;
}
